css: always get default font size in pixels
authorMatt Watson <mattdangerw@gmail.com>
Tue, 12 Apr 2016 01:18:31 +0000 (18:18 -0700)
committerMatt Watson <mattdangerw@gmail.com>
Tue, 12 Apr 2016 23:58:55 +0000 (16:58 -0700)
commitdf08fc91bdc1d2e4c866122304fabe4dd298a7de
treeef9f5597367708108f3a76ce45b205ef279fbca9
parentf9ba55eaad6b2bb1d85a2d78202c3abe6a0b67d0
css: always get default font size in pixels

Fixes a couple bugs...

 - Pixel font sizes in css would render as point sizes.

 - For em font sizes, where the parent size was set and not default, we would
   incorrectly convert a pixel value from points to pixels.

We'll always grab the default font size in pixels so we don't keep confusing
things.

Worth noting that gtk css font-size will still behave differently than the
web. Pango interprets font-size differently.
gtk/gtkcssdimensionvalue.c
gtk/gtkcssenumvalue.c
gtk/gtkcssenumvalueprivate.h
gtk/gtkcssshorthandpropertyimpl.c